package com.user.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enums.user.OrgLevelEnum;
import com.common.enums.user.OrgTypeEnum;
import com.core.domain.CorePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: stefanie-zy
 * @time: 2024/1/25-11:18
 * @description: Po-组织
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_organization")
@Schema(name = "Po-组织")
public class OrganizationPo extends CorePo implements Serializable {
    @Serial
    private static final long serialVersionUID = 6512566065277947924L;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "标识")
    private String key;

    @Schema(description = "负责人")
    private String principal;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "手机")
    private String phoneNumber;

    @Schema(description = "类型")
    private OrgTypeEnum type;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "父级id")
    private Long parentId;

    @Schema(description = "图标")
    private String icoUrl;

    @Schema(description = "等级")
    private OrgLevelEnum level;
}
